package com.alibaba.luohua.product.mapper;

import com.alibaba.luohua.common.core.dto.request.ArticleQueryObject;
import com.alibaba.luohua.common.core.dto.respone.ArticleDTO;
import com.alibaba.luohua.common.core.dto.respone.ArticleRspDTO;
import com.alibaba.luohua.product.entity.ArticleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author luohua
 * @date 2022年3月15日14:38:49
 */
@Repository
public interface ArticleMapper extends BaseMapper<ArticleEntity> {

    /**
     * 查询物品详情信息
     *
     * @param id
     * @return
     */
    ArticleRspDTO selectById(Long id);

    /**
     * 按条件查询物品列表
     *
     * @param qo
     * @return
     */
    List<ArticleDTO> selectForList(ArticleQueryObject qo);
}